<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">
<head>
  <title>登录</title>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  <link rel="stylesheet" type="text/css" href="/webjars/bootstrap/css/bootstrap.min.css"/>
  <script type="text/javascript" src="/webjars/jquery/jquery.min.js"></script>
  <script type="text/javascript" src="/webjars/github-com-sentsin-layer/src/layer.js"></script>
  <script type="text/javascript" src="/webjars/bootstrap/js/bootstrap.min.js"></script>
  <script type="text/javascript" src="/webjars/jquery-validation/jquery.validate.min.js"></script>
  <script type="text/javascript" th:src="@{/plugins/md5.min.js}"></script>
  <script type="text/javascript" th:src="@{/plugins/messages_zh.min.js}"></script>
  <script type="text/javascript" th:src="@{/js/common.js}"></script>
  <script type="text/javascript" th:src="@{/js/login.js}"></script>
</head>
<body>

<form name="loginForm" id="loginForm" method="post" style="width:50%; margin:0 auto">
  <h2 style="text-align:center; margin-bottom: 20px">用户登录</h2>
  <div class="form-group">
    <div class="row">
      <label class="form-label col-md-4">请输入手机号码</label>
      <div class="col-md-5">
        <input id="mobile" name="mobile" class="form-control" type="text" placeholder="手机号码" required="true"
               minlength="11" maxlength="11"/>
      </div>
      <div class="col-md-1">
      </div>
    </div>
  </div>
  <div class="form-group">
    <div class="row">
      <label class="form-label col-md-4">请输入密码</label>
      <div class="col-md-5">
        <input id="password" name="password" class="form-control" type="password" placeholder="密码" required="true"
               minlength="6" maxlength="16"/>
      </div>
    </div>
  </div>
  <div class="row">
    <div class="col-md-5">
      <button class="btn btn-primary btn-block" type="reset" onclick="reset()">重置</button>
    </div>
    <div class="col-md-5">
      <button class="btn btn-primary btn-block" type="submit" onclick="login()">登录</button>
    </div>
  </div>
</form>
</body>
</html>